Class PolicyMapImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.PolicyMapImpl
All Implemented Interfaces:
IPCObject, PolicyMap

public class PolicyMapImpl extends IPCObjectImpl implements PolicyMap
Information provided by the PKI file:

    \class PolicyMap
    
    \brief PolicyMap handles and manipulates policy maps.
    
    \example network().getDevice("Router0").getPolicyMapManager().getPolicyMapAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getClassCnt

      public int getClassCnt()
      Information provided by the PKI file:
      
          \brief Returns the number of policies.
          
          \return int, the number of policies.
          
              
      Specified by:
      getClassCnt in interface PolicyMap
      Returns:
      int Returns a int
    • getClassAt

      public PolicyMapQosClass getClassAt(int index)
      Information provided by the PKI file:
      
          \brief Returns QoS class at the specified index.
          
          \param index, the index of the QoS class of interest.
          
          \return PolicyMapQosClass, the PolicyMapQosClass object.
          
              
      Specified by:
      getClassAt in interface PolicyMap
      Parameters:
      index - Takes in a parameter of index
      Returns:
      PolicyMapQosClass Returns a PolicyMapQosClass
    • getTotalBandwidth

      public int getTotalBandwidth()
      Information provided by the PKI file:
      
          \brief Returns the total bandwidth value.
          
          \return int, the total bandwidth value.
          
              
      Specified by:
      getTotalBandwidth in interface PolicyMap
      Returns:
      int Returns a int
    • getTotalBandwidthPercent

      public int getTotalBandwidthPercent()
      Information provided by the PKI file:
      
          \brief Returns the total bandwidth percentage.
          
          \return int, the total bandwidth percentage.
          
              
      Specified by:
      getTotalBandwidthPercent in interface PolicyMap
      Returns:
      int Returns a int
    • getTotalBandwidthRemainPercent

      public int getTotalBandwidthRemainPercent()
      Information provided by the PKI file:
      
          \brief Returns the total bandwidth remaining percentage.
          
          \return int, the total bandwidth remaining percentage.
          
              
      Specified by:
      getTotalBandwidthRemainPercent in interface PolicyMap
      Returns:
      int Returns a int
    • isBandwidthConfigured

      public boolean isBandwidthConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if the bandwidth value is configured, otherwise false.
          
          \return bool, true if the bandwidth value is configured, otherwise false.
          
              
      Specified by:
      isBandwidthConfigured in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • isPriorityConfigured

      public boolean isPriorityConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if the priority is configured, otherwise false.
          
          \return bool, true if the priority is configured, otherwise false.
          
              
      Specified by:
      isPriorityConfigured in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • isFairQueueConfigured

      public boolean isFairQueueConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if fair queue is configured, otherwise false.
          
          \return bool, true if fair queue is configured, otherwise false.
          
              
      Specified by:
      isFairQueueConfigured in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • isShapeConfigured

      public boolean isShapeConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if traffic shaping is configured, otherwise false.
          
          \return bool, true if traffic shaping is configured, otherwise false.
          
              
      Specified by:
      isShapeConfigured in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • hasOutputFeature

      public boolean hasOutputFeature()
      Information provided by the PKI file:
      
          \brief Returns true if the policy map has output feature, otherwise false.
          
          \return bool, true if the policy map has output feature, otherwise false.
          
              
      Specified by:
      hasOutputFeature in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • hasGtsFeature

      public boolean hasGtsFeature()
      Information provided by the PKI file:
      
          \brief Returns true if the policy map has GTS feature, otherwise false.
          
          \return bool, true if the policy map has GTS feature, otherwise false.
          
              
      Specified by:
      hasGtsFeature in interface PolicyMap
      Returns:
      boolean Returns a boolean
    • updateOutputPort

      public void updateOutputPort()
      Information provided by the PKI file:
      
          \brief Updates the output port.
          
              
      Specified by:
      updateOutputPort in interface PolicyMap
    • getMapName

      public String getMapName()
      Information provided by the PKI file:
      
          \brief Returns the name of the policy map.
          
          \return string, the name of the policy map.
          
              
      Specified by:
      getMapName in interface PolicyMap
      Returns:
      String Returns a String
    • getMapType

      public MapType getMapType()
      Information provided by the PKI file:
      
          \brief Returns the type of the policy map.
          
          \return QoS::eMapType,      the type of the policy map.
          Map types:  type_default = 0,
          type_control = 1,
          type_inspect = 2,
          type_asaInspect = 3,
          type_logging = 4
          
              
      Specified by:
      getMapType in interface PolicyMap
      Returns:
      MapType Returns a MapType
    • setMapType

      public void setMapType(MapType mapType)
      Information provided by the PKI file:
      
          \brief Sets the type of the policy map.
          
          \param mapType,     the type of the policy map.
          Map types:  type_default = 0,
          type_control = 1,
          type_inspect = 2,
          type_asaInspect = 3
          type_logging = 4
          
              
      Specified by:
      setMapType in interface PolicyMap
      Parameters:
      mapType - Takes in a parameter of mapType
    • toString

      public String toString(boolean isAsa)
      Information provided by the PKI file:
      
          \brief Returns the name of the policy map.
          
          \return string, the name of the policy map.
          
              
      Specified by:
      toString in interface PolicyMap
      Parameters:
      isAsa - Takes in a parameter of isAsa
      Returns:
      String Returns a String